<%--
  Created by IntelliJ IDEA.
  User: jiao
  Date: 2019/4/29
  Time: 21:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <link rel="stylesheet" href="/resource/layui/css/layui.css">
    <link rel="stylesheet" href="/resource/css/global.css">
    <link rel="stylesheet" href="/resource/css/common.css">
</head>
<body style="margin-top: 0px">
<div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief" lay-filter="user">
        <ul class="layui-tab-title" id="LAY_mine">
            <li data-type="publish" lay-id="index" class="layui-this">他的发表（<span>${essaylistsize }</span>）</li>
            <li data-type="collection" lay-id="collection">他的收藏（<span>${collectionEssayListSize }</span>）</li>
            <li data-type="attention" lay-id="attention">他的关注（<span>${attentionUserListSize }</span>）</li>
            <li data-type="download" lay-id="download">他的下载（<span>${obtainEssayListSize }</span>）</li>
        </ul>
        <div class="layui-tab-content" style="padding: 20px 0;">
            <div class="layui-tab-item layui-show">
                <ul class="mine-view jie-row">
                    <c:if test="${!empty essaylist }">
                        <!-- 我发表的帖子的循环开始 -->
                        <c:forEach items="${essaylist }" var="essay">
                            <li>
                                <a class="jie-title"
                                   href="/essay/auditingEssay.do?essayId=${essay.essayId }">${essay.title }</a>
                                <i>${essay.publishDate }</i>
                                <em>${essay.likeNumber }赞/${essay.treadNumber }踩</em>
                            </li>
                        </c:forEach>
                        <!-- 我发表的帖子的循环结束 -->
                    </c:if>
                    <c:if test="${empty essaylist }">
                        <div class="fly-none">没有相关数据</div>
                    </c:if>
                </ul>
                <div style="text-align: center">
                <div id="Bpage"></div>
                </div>
            </div>
            <div class="layui-tab-item">
                <ul class="mine-view jie-row">
                    <c:if test="${!empty collectionEssayList }">
                        <!-- 我收藏的帖子的循环开始 -->
                        <c:forEach items="${collectionEssayList }" var="collectionEssayList">
                            <li>
                                <a class="jie-title"
                                   href="/essay/auditingEssay.do?essayId=${collectionEssayList.essayId }">${collectionEssayList.title }</a>
                            </li>
                        </c:forEach>
                        <!-- 我收藏的帖子的循环结束 -->
                    </c:if>
                    <c:if test="${empty collectionEssayList }">
                        <div class="fly-none">没有相关数据</div>
                    </c:if>
                </ul>
                <div style="text-align: center">
                <div id="Bpage1"></div>
                </div>
            </div>
            <div class="layui-tab-item">
                <ul class="mine-view jie-row">
                    <c:if test="${!empty attentionUserList }">
                        <!-- 我关注的人的循环开始 -->
                        <c:forEach items="${attentionUserList}" var="attentionUserList">
                            <li>
                                <a class="jie-title"
                                   href="/manager/checkUser.do?userId=${attentionUserList.userId }"
                                   target="main">${attentionUserList.userName }</a>
                            </li>
                        </c:forEach>
                        <!-- 我关注的人的循环结束 -->
                    </c:if>
                    <c:if test="${empty attentionUserList }">
                        <div class="fly-none">没有相关数据</div>
                    </c:if>
                </ul>
                <div style="text-align: center">
                <div id="Bpage2"></div>
                </div>
            </div>
            <div class="layui-tab-item">
                <ul class="mine-view jie-row">
                    <c:if test="${!empty obtainEssayList }">
                        <!-- 我收藏的帖子的循环开始 -->
                        <c:forEach items="${obtainEssayList }" var="obtainEssayList">
                            <li>
                                <a class="jie-title"
                                   href="/essay/auditingEssay.do?essayId=${obtainEssayList.essayId }">${obtainEssayList.title }</a>
                            </li>
                        </c:forEach>
                        <!-- 我收藏的帖子的循环结束 -->
                    </c:if>
                    <c:if test="${empty obtainEssayList }">
                        <div class="fly-none">没有相关数据</div>
                    </c:if>
                </ul>
                <div style="text-align: center">
                <div id="Bpage3"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="text" class="layui-hide" id="PublishNumber" value="${essaylistsize}">
<input type="text" class="layui-hide" id="CollectionNumber" value="${collectionEssayListSize}">
<input type="text" class="layui-hide" id="AttentionNumber" value="${attentionUserListSize}">
<input type="text" class="layui-hide" id="ObtainNumber" value="${obtainEssayListSize}">
<input type="text" class="layui-hide" id="whichPage" value="${whichPage}">
<input type="text" class="layui-hide" id="PcurrentPage" value="${PcurrentPage}">
<input type="text" class="layui-hide" id="CcurrentPage" value="${CcurrentPage}">
<input type="text" class="layui-hide" id="AcurrentPage" value="${AcurrentPage}">
<input type="text" class="layui-hide" id="OcurrentPage" value="${OcurrentPage}">
<input type="text" class="layui-hide" id="userId" value="${userId}">
<script type="text/javascript" src="/resource/js/common.js"></script>
<script src="/resource/js/jquery-3.4.0.min.js"></script>
<script src="/resource/layui/layui.js"></script>
<script src="/resource/js/checkUser.js"></script>
</body>
</html>
